package org.dzq.designmode.proxy.cglibproxy;

import org.dzq.designmode.proxy.Animal;
import org.dzq.designmode.proxy.Cat;

/**
 * @ClassName: Test
 * @Package: org.dzq.designmode.proxy.cglibproxy
 * @author: 越
 * @date: 2023/6/17 15:18
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        CglibInterceptor cglibInterceptor = new CglibInterceptor();
        Animal cglibProxyObject = (Animal)CglibProxyFactory.getProxyByCglib(Cat.class, cglibInterceptor);
        cglibProxyObject.eat("黄瓜");
    }
}
